from django.urls import path

from web.views import account, home, meat, vegetable

urlpatterns = [

    path("register/", account.register, name='register'),
    path("sms/code/", account.send_sms, name='send_sms'),
    path('login/sms/', account.login_sms, name='login_sms'),
    path('login/', account.login, name='login'),
    path('image/code', account.image_code, name='image_code'),
    path('index/', home.index, name='index'),
    path('logout/', account.logout, name='logout'),

    path('veg/store/', vegetable.veg_store, name='veg_store'),
    path('veg/add-veg/', vegetable.add_veg, name='add_veg'),
    path('veg/del-veg/<str:veg_id>', vegetable.del_veg, name='del_veg'),
    path('veg/edit-veg/', vegetable.edit_veg, name='edit_veg'),
    path('meat/store', meat.meat_store, name='meat_store'),
    path('meat/add-meat/', meat.add_meat, name='add_meat'),
    path('meat/del-meat/<str:veg_id>', meat.del_meat, name='del_meat'),
    path('meat/edit-meat/', meat.edit_meat, name='edit_meat'),
]
